Integrand size = 38, antiderivative size = 214 \[ \int \frac {A+B \tan (c+d x)}{\cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}} \, dx=\frac {\left (\frac {1}{8}+\frac {i}{8}\right ) (i A+B) \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{a^{5/2} d}+\frac {i A-B}{5 d \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}+\frac {A+11 i B}{30 a d \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}+\frac {13 A-37 i B}{60 a^2 d \sqrt {\cot (c+d x)} \sqrt {a+i a \tan (c+d x)}} \]
[Out]
Time = 0.97 (sec) , antiderivative size = 214, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {4326, 3676, 3677, 12, 3625, 211} \[ \int \frac {A+B \tan (c+d x)}{\cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}} \, dx=\frac {\left (\frac {1}{8}+\frac {i}{8}\right ) (B+i A) \sqrt {\tan (c+d x)} \sqrt {\cot (c+d x)} \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{a^{5/2} d}+\frac {13 A-37 i B}{60 a^2 d \sqrt {\cot (c+d x)} \sqrt {a+i a \tan (c+d x)}}+\frac {-B+i A}{5 d \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}+\frac {A+11 i B}{30 a d \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}} \]
[In]
[Out]
Rule 12
Rule 211
Rule 3625
Rule 3676
Rule 3677
Rule 4326
Rubi steps \begin{align*} \text {integral}& = \left (\sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {\tan ^{\frac {3}{2}}(c+d x) (A+B \tan (c+d x))}{(a+i a \tan (c+d x))^{5/2}} \, dx \\ & = \frac {i A-B}{5 d \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}-\frac {\left (\sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {\sqrt {\tan (c+d x)} \left (\frac {3}{2} a (i A-B)-a (A-4 i B) \tan (c+d x)\right )}{(a+i a \tan (c+d x))^{3/2}} \, dx}{5 a^2} \\ & = \frac {i A-B}{5 d \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}+\frac {A+11 i B}{30 a d \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}+\frac {\left (\sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {-\frac {1}{4} a^2 (A+11 i B)-\frac {1}{2} a^2 (7 i A+13 B) \tan (c+d x)}{\sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}} \, dx}{15 a^4} \\ & = \frac {i A-B}{5 d \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}+\frac {A+11 i B}{30 a d \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}+\frac {13 A-37 i B}{60 a^2 d \sqrt {\cot (c+d x)} \sqrt {a+i a \tan (c+d x)}}+\frac {\left (\sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int -\frac {15 a^3 (A-i B) \sqrt {a+i a \tan (c+d x)}}{8 \sqrt {\tan (c+d x)}} \, dx}{15 a^6} \\ & = \frac {i A-B}{5 d \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}+\frac {A+11 i B}{30 a d \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}+\frac {13 A-37 i B}{60 a^2 d \sqrt {\cot (c+d x)} \sqrt {a+i a \tan (c+d x)}}-\frac {\left ((A-i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {\tan (c+d x)}} \, dx}{8 a^3} \\ & = \frac {i A-B}{5 d \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}+\frac {A+11 i B}{30 a d \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}+\frac {13 A-37 i B}{60 a^2 d \sqrt {\cot (c+d x)} \sqrt {a+i a \tan (c+d x)}}+\frac {\left (i (A-i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{-i a-2 a^2 x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{4 a d} \\ & = \frac {\left (\frac {1}{8}+\frac {i}{8}\right ) (i A+B) \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{a^{5/2} d}+\frac {i A-B}{5 d \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}}+\frac {A+11 i B}{30 a d \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}+\frac {13 A-37 i B}{60 a^2 d \sqrt {\cot (c+d x)} \sqrt {a+i a \tan (c+d x)}} \\ \end{align*}
Time = 7.13 (sec) , antiderivative size = 224, normalized size of antiderivative = 1.05 \[ \int \frac {A+B \tan (c+d x)}{\cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}} \, dx=\frac {\cot ^{\frac {3}{2}}(c+d x) \sec ^2(c+d x) (i a \tan (c+d x))^{3/2} \left (2 (A+11 i B+2 (7 A-13 i B) \cos (2 (c+d x))+20 (i A+B) \sin (2 (c+d x))) \sqrt {i a \tan (c+d x)}-15 \sqrt {2} (A-i B) \text {arctanh}\left (\frac {\sqrt {2} \sqrt {i a \tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) (\cos (2 (c+d x))+i \sin (2 (c+d x))) \sqrt {a+i a \tan (c+d x)}\right )}{120 a^4 d (-i+\tan (c+d x))^2 \sqrt {a+i a \tan (c+d x)}} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 1105 vs. \(2 (172 ) = 344\).
Time = 0.54 (sec) , antiderivative size = 1106, normalized size of antiderivative = 5.17
method | result | size |
derivativedivides | \(\text {Expression too large to display}\) | \(1106\) |
default | \(\text {Expression too large to display}\) | \(1106\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 482 vs. \(2 (160) = 320\).
Time = 0.25 (sec) , antiderivative size = 482, normalized size of antiderivative = 2.25 \[ \int \frac {A+B \tan (c+d x)}{\cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}} \, dx=-\frac {{\left (15 \, \sqrt {\frac {1}{2}} a^{3} d \sqrt {\frac {-i \, A^{2} - 2 \, A B + i \, B^{2}}{a^{5} d^{2}}} e^{\left (5 i \, d x + 5 i \, c\right )} \log \left (-\frac {4 \, {\left (\sqrt {2} \sqrt {\frac {1}{2}} {\left (a^{3} d e^{\left (2 i \, d x + 2 i \, c\right )} - a^{3} d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} - 1}} \sqrt {\frac {-i \, A^{2} - 2 \, A B + i \, B^{2}}{a^{5} d^{2}}} + {\left (A - i \, B\right )} a e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}}{i \, A + B}\right ) - 15 \, \sqrt {\frac {1}{2}} a^{3} d \sqrt {\frac {-i \, A^{2} - 2 \, A B + i \, B^{2}}{a^{5} d^{2}}} e^{\left (5 i \, d x + 5 i \, c\right )} \log \left (\frac {4 \, {\left (\sqrt {2} \sqrt {\frac {1}{2}} {\left (a^{3} d e^{\left (2 i \, d x + 2 i \, c\right )} - a^{3} d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} - 1}} \sqrt {\frac {-i \, A^{2} - 2 \, A B + i \, B^{2}}{a^{5} d^{2}}} - {\left (A - i \, B\right )} a e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}}{i \, A + B}\right ) - \sqrt {2} {\left ({\left (-17 i \, A - 23 \, B\right )} e^{\left (6 i \, d x + 6 i \, c\right )} - 2 \, {\left (-8 i \, A - 17 \, B\right )} e^{\left (4 i \, d x + 4 i \, c\right )} - 2 \, {\left (-2 i \, A + 7 \, B\right )} e^{\left (2 i \, d x + 2 i \, c\right )} - 3 i \, A + 3 \, B\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} - 1}}\right )} e^{\left (-5 i \, d x - 5 i \, c\right )}}{120 \, a^{3} d} \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \tan (c+d x)}{\cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}} \, dx=\text {Timed out} \]
[In]
[Out]
Exception generated. \[ \int \frac {A+B \tan (c+d x)}{\cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}} \, dx=\text {Exception raised: RuntimeError} \]
[In]
[Out]
\[ \int \frac {A+B \tan (c+d x)}{\cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}} \, dx=\int { \frac {B \tan \left (d x + c\right ) + A}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \cot \left (d x + c\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \tan (c+d x)}{\cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2}} \, dx=\int \frac {A+B\,\mathrm {tan}\left (c+d\,x\right )}{{\mathrm {cot}\left (c+d\,x\right )}^{3/2}\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{5/2}} \,d x \]
[In]
[Out]